<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:py="http://genshi.edgewall.org/"
	xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"
	py:replace="''" />
</head>

<body id="document" class="tab-grey ">

<div id="view">
		<form method="get" name="task_new_task_form"
			id="task_new_task_form" action="${tg.url('new_task', id=project.project_id)}">
		<table class="summary">
			<tbody>
				<tr>
				<th>${this.mapper_general['milestone']}</th>
					<td><select id="new_task.milestone_id" name="new_task.milestone_id"
						size="1">
						<option py:if="milestone" value="${milestone.milestone_id}">${milestone['milestone_id']}:
						${milestone['name']}</option>
						<option value=""></option>
						<option py:for="milestone in project.milestones"
							value="${milestone.milestone_id}">${milestone.milestone_id}:
						${milestone.name}</option>
					</select></td>
				</tr>
				<tr py:for="col in this.iterator_task_form">
					<th>${this.mapper_task[col]}</th>
					<td py:if="col in ['description']">
						<span py:if="col in errors" class="error">${errors[col]}</span>
						<textarea id="new_task.${col}"
						name="new_task.${col}" cols="40" row="3" >${new_task[col]}</textarea>

					</td>
						<td py:if="col not in ['description']">
						<input type="text" id="new_task.${col}"
						name="new_task.${col}" value="${new_task[col]}"/>
						<span py:if="col in errors" class="error">${errors[col]}</span></td>
				</tr>
			</tbody>
		</table>
		<input type="hidden" name="id" value="${project.project_id}" />
			<input id="actions.save_task" name="actions.save_task" value="${this.mapper_action['save']}" class="button"
				type="submit" />
		</form>

		<pre>${str(errors)}</pre>

</div>
</body>
</html>
